package edu.object_oriented.demo2;

public class Test {

    public static void main(String[] args) {
        Student stu = new Student();
        stu.name = "张三";
        stu.age = 20;
        stu.num = "20201245678";

        Student stu2 = new Student();
        stu.name = "李四";
        stu.age = 20;
        stu.num = "20201245670";
        //学生选的课程
        stu.courseNums =new String[]{"c_001","c_002"};

        Course course1 = new Course();
        course1.num = "c_001";
        course1.c_name = "java";
        course1.credit = "3";
        Course course2 = new Course();
        course1.num = "c_002";
        course1.c_name = "python";
        course1.credit = "3";

        stu.courses = new Course[]{course1,course2};

        Stu_Cou sc = new Stu_Cou();
        sc.snum = "20201245678";
        sc.cnum = "c_001";
        Stu_Cou sc2 = new Stu_Cou();
        sc2.snum = "20201245678";
        sc2.cnum = "c_002";

    }

}
